@import "@/app/styles";

.ChatFooter {
  display: flex;
  align-items: center;
  background: linear-gradient(to right, $color-purple, $color-primary-hover);
  border-bottom-right-radius: $border-layout;
  padding: 16px;
  height: 86px;
  width: 100%;

  &-WriteFieldGroup {
    position: relative;
    width: 100%;
  }

  &-WriteField {
    font-family: $base-font-family;
    font-size: $base-font-size;
    font-weight: $base-font-weight;
    font-style: $base-font-style;
    line-height: $base-line-height;
    margin: 0;
    padding: 13px 16px 0 16px;
    width: 100%;
    height: 45px;
    border: 1px solid transparent;
    border-radius: $border-radius;
    color: $color-white;
    background-color: $color-night;
    outline: transparent;
    resize: none;
    transition: all $transition;

    &::placeholder {
      background-color: transparent;
      color: $color-gray;
    }

    &__isActive {
      border: 1px solid $color-primary;
    }
  }

  &-IconSend {
    cursor: pointer;
    margin-left: 16px;
  }

  &-Join {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    right: 50%;
    width: max-content;
    border: transparent;
    background-color: transparent;
    outline: transparent;
    color: $color-primary;

    &:hover {
      color: $color-primary-hover;
    }
  }
}
